home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Kit PC World De Ampliacion De Windows 95
/
Kit PC World de ampliacion de Windows 95.iso
/
clarion
/
cw15
/
examp15.z
/
PROPERTY.FAQ
< prev
next >
Wrap
Text File
|
1995-09-07
|
1KB
|
42 lines
HOW TO ASSIGN AN IMAGE FROM A MEMO OR BLOB FIELD TO AN IMAGE CONTROL:
First, the image needs to be assigned to an Image Control, either by naming
the disk file of the image in Properties of the Image Control or by assigning
the name via Property Syntax, as in:
?Image1{PROP:Text} = ImageFile
Next, assign the image to a Binary MEMO, as in:
CON:TheMemo = ?Image1{PROP:ImageBits}
or assign it to a Binary BLOB, as in:
CON:TheBlob{PROP:Handle} = ?Image1{PROP:ImageBlob}
Finally, the assignment of the BLOB or MEMO image back to an Image Control
requires one of two situations:
1. The Width and Height of the Image Control are both Default as seen
in Position of the Control, or
2. After the Image has been assigned via Property Syntax, a fixed Width
and Height are also assigned to the Image Control, as in:
?Image2{PROP:ImageBits} = CON:TheMemo
?Image2{PROP:Width} = 92
?Image2{PROP:Height} = 88
OR
?Image2{PROP:ImageBlob} = CON:TheBlob{PROP:Handle}
?Image2{PROP:Width} = 92
?Image2{PROP:Height} = 88
If neither of the above conditions (1 or 2) above are met, the image will
not display.
JS